<!DOCTYPE html>
<html>
<#include "../../head.html">
    <body>
    <table class="mc">
        <tr>
            <td class="mc-l">
                <!--左侧导航---{-->
                <div id="navPanelContainer">
                    <div class="system-logo cd"></div>
                    <!--管理员信息---{-->
                    <#include "../../adminInfo.html">
                        <!--管理员信息---}-->
                        <div class="nav-wrap">
                            <#include "../left.html">
                        </div>
                </div>
                <!--左侧导航---}-->
            </td>
            <td class="mc-m">
                <div class="navToggle"></div>
            </td>
            <td class="mc-r">
                <!--顶部导航---{-->
                <#include "../../topNav.html">
                    <!--顶部导航---}-->

                    <!--面包屑导航---{-->
                    <#assign moduleName="会员积分操作记录">
                        <#include "../banner.html">
                            <!--面包屑导航---}-->

                            <!--工具栏--{-->
                            <div id="toolbar" class="clearfix">
                                <form action="" method="post">
                                 <div class="toolbor-module search">    
                                   <input type="button" value="搜索"  class="input-button" onClick="sousuo();">
                                </div>
                                <div class="toolbor-module search">
                                	
                                   <input type="text" name="username" id="username" value="请输入用户名" data-value="请输入用户名" class="search-value">
                                </div>
                                <div class="toolbor-module search">   
                                   <select name="type_id" id="type_id">
									<option>全部</option>
										<#list typeList as item>
									<option <#if item.id == type_id>selected="selected"</#if> value="${(item.id)!}">${(item.name)!}</option>
										</#list>
									</select>
                                </div>
                               
                                </form>
                            </div>
                            <!--工具栏--}-->

                            <div id="main" class="clearfix">
                                <!--  V1.6.6.2 zhangyz 2013-10-29 start -->
                                <table class="data-list">
                                        <tr class="header">
                                        	<td>ID</td>
                                        	<td>会员</td>
                                        	<td>积分类型</td>
											<td>积分变动数值</td>
											<!-- v1.6.7.2 RDPROJECT-503 zza 2013-12-13 start -->
											<td>剩余有效积分</td>
											<!-- v1.6.7.2 RDPROJECT-503 zza 2013-12-13 end -->
											<td>变动类型</td>
											<td>记录时间</td>
											<td width="30%">备注</td>
											<td>操作</td>
                                        </tr>
                                        <#list list as item>
                                        <tr class="s">
                                        	<td>${item.id?c}</td>
                                        	<td>${item.username!"-"}</td>
											<td><#list typeList as type><#if type.id == item.type_id >${type.name}</#if></#list></td>
											<td>${item.value!0}</td>
											<!-- v1.6.7.2 RDPROJECT-503 zza 2013-12-13 start -->
											<td>${item.valid_value!0}</td>
											<!-- v1.6.7.2 RDPROJECT-503 zza 2013-12-13 end -->
											<td><#if item.op == 1 >增加<#elseif item.op == 2>减少<#else>无操作</#if></td>
											<td>${dateformat(item.addtime?c)}</td>
											<td>${item.remark!"-"}</td>
											<td>-</td>	
                                        </tr>
                                        </#list>
                                    </table>
								<!--  V1.6.6.2 zhangyz 2013-10-29 end -->
                                <!--底部工具栏--{-->
                                <div id="bottomToolbar" class="clearfix">
                                    <div class="other-tool">
                                        <dl class="refresh-data">
                                            <dt class="refresh-data-icon"></dt>
                                            <dd><a href="javascript:void(0);" class="refresh-page">刷新数据</a></dd>
                                        </dl>
                                    </div>

                                    <!--翻页系统--{-->
                                    <div class="container">
                                        <#import "../../../common/page.html" as pager>
                                        <!-- v1.6.7.2 RDPROJECT-560 zza 2013-12-13 start -->
                                        <@pager.pagination page=page url="/admin/credit/showUserCreditLog.html?type_id="+type_id map=param style="style1" />
                                        <!-- v1.6.7.2 RDPROJECT-560 zza 2013-12-13 end -->
                                    </div>
                                    <!--翻页系统--}-->
                                    		<script type="text/javascript">
												var url='showUserCreditLog.html?search=true';
												function sousuo(){
													var sou = "";
													var username = $("#username").val();
													var type_id = $("#type_id").val();
													if (username!=""&&username!="请输入用户名"){
														sou += "&username="+username;
													}
													if (type_id!=null){
														sou +="&type_id="+type_id;
													}
													if(sou!=""){
														location.href=url+sou;
													}
											  	 }

											</script>
                                </div>
                                <!--底部工具栏--}-->
                            </div>

            </td>
        </tr>
        <tr>
            <!--尾部--{-->
            <td colspan="3" class="mc-b"><#include "../../foot.html"></td>
            <!--尾部--}-->
        </tr>
    </table>
	
    </body>
</html>
<#include "../../jsPage.html">